package com.qf.service.impl;

import com.qf.dao.GoodsDao;
import com.qf.dao.impl.GoodsDaoImpl;
import com.qf.pojo.Goods;
import com.qf.pojo.PageBean;
import com.qf.service.GoodsService;

import java.util.List;

/**
 * Created by Administrator on 2021/10/25.
 */
public class GoodsServiceImpl implements GoodsService {
    private GoodsDao goodsDao=new GoodsDaoImpl();
    @Override
    public List<Goods> selectAll(int cid,int level, PageBean pageBean) {
        return goodsDao.selectAll(cid,level,pageBean);
    }

    @Override
    public int selectRow(int cid,int level) {
        return goodsDao.getAllRows(cid,level);
    }

    @Override
    public Goods selectOneById(int gid) {
        return goodsDao.selectOne(gid);
    }
}
